Documentation Index
Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt
Use this file to discover all available pages before exploring further.
The “Order Fulfillment” API facilitates the process of fulfilling an order.
POST https://services.leadconnectorhq.com/payments/orders/{orderId}/fulfillments
Autorizacion
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.
Path parameters
orderId
string
default:"653f5e0cde5a1314e62a837c"
required
ID of the order that needs to be returned
Body
altId
string
default:"6578278e879ad2646715ba9c"
required
Account Id or Agency Id
Posibles valores: ‘account’
Fulfillment tracking information
trackingNumber
string
default:"40012345678"
Tracking number provided by the shipping carrier
Fulfilled items
priceId
string
default:"6578278e879ad2646715ba9c"
required
The id of product price
qty
number
default:"1"
required
The no of quantity of the item
notifyCustomer
boolean
default:"True"
required
Need to send a notification to customer
Respuestas
200 - Successful response
status
boolean
default:"True"
required
Status of api action
422 - Unprocessable Entity
Ejemplo
curl -X POST 'https://services.leadconnectorhq.com/payments/orders/YOUR_orderId/fulfillments' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Version: 2021-07-28' \
-H 'Content-Type: application/json' \
-d '{
"altId": "6578278e879ad2646715ba9c",
"altType": "account",
"trackings": [
{
"trackingNumber": "40012345678",
"shippingCarrier": "FedEx",
"trackingUrl": "https://www.fedex.com/wtrk/track/?trknbr=40012345678"
}
],
"items": [
{
"priceId": "6578278e879ad2646715ba9c",
"qty": 1
}
],
"notifyCustomer": true
}'