Skip to content

Shipping Update

After a loan is approved and the order ships, merchants push shipping information back to WeGetFinancing.

POST /merchant/{merchant_id}/shipping

HTTP Basic Auth with merchant credentials. See Public API Overview.

Content-Type: application/json
FieldTypeRequiredDescription
loan_idstringYesThe inv_id returned by the create-request call
shipping_eventobjectYesShipping event data (see below)
FieldTypeRequiredDescription
datestringYesShipment date
stateenumYesaccepted, partial, dispatched, delivered, recalled, other
itemsstring[]NoList of shipped item identifiers
messagestringNoStatus message
expected_delivery_datestringNoExpected delivery date
service_typestringNoCarrier service type
shipment_companystringNoCarrier name (e.g. UPS, FedEx)
tracking_numberstringNoCarrier tracking number

ShipmentState values:

ValueDescription
acceptedStock confirmed, ready to ship
partialSome items confirmed and shipped
dispatchedAll items shipped or ready for pickup
deliveredShipment delivered to customer
recalledShipment cancelled or recalled
otherOther / unexpected status
Terminal window
curl -u "$USERNAME:$PASSWORD" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-X POST \
"https://api.sandbox.wegetfinancing.com/merchant/1234/shipping" \
-d '{
"loan_id": "df0c3186b69be8aad35ff837a841d347",
"shipping_event": {
"date": "2024-01-15", "state": "dispatched",
"shipment_company": "UPS", "tracking_number": "1Z999AA10123456784",
"expected_delivery_date": "2024-01-18"
}
}'
{
"loan": "df0c3186b69be8aad35ff837a841d347",
"type": "done",
"http_code": 200
}
FieldTypeDescription
loanstringThe loan document ID the event was recorded against
typestringAlways "done"
http_codeintegerAlways 200