POST /transactions.json
Body Required
-
Amount
Default value is
0
. -
baseAmount number | null
Base amount
-
Created source
Values are
manual
orcatchup
. Default value ismanual
. -
dropshipmentId integer(int32) | null
Dropshipment
-
External
-
fulfillmentId integer(int32) | null
Fulfillment
-
Name
-
Processing fee
Default value is
0
. -
purchaseId integer(int32) | null
Purchase
-
purchaseInvoiceId integer(int32) | null
Purchase invoice
-
purchasedAt string(date-time) | null
Purchased at
-
Refund amount
Default value is
0
. -
returnShipmentId integer(int32) | null
Return shipment
-
saleReturnId integer(int32) | null
Sale return
-
shippingIntegrationId integer(int32) | null
Shipping integration
-
shippingRateCacheId integer(int32) | null
Shipping rate cache
-
Source
Values are
farfetch:postmen
,jetti
,postmen
,shippingIntegration
,shippo
,shippyPro
, orshipStation
. Default value isjetti
. -
Status
Values are
pending
,complete
,error
, orcancelled
. Default value ispending
. -
stripeId string | null
Stripe
-
stripeRefundId string | null
Stripe refund
-
transferId integer(int32) | null
Transfer
-
Type
Values are
farfetch:postmen
,postmen
,shippo
,shippyPro
,shipStation
, orstripe
.
POST /transactions.json
curl \
-X POST http://api.example.com/v1/transactions.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"amount":0,"baseAmount":42.0,"createdSource":"manual","dropshipmentId":42,"externalId":"string","fulfillmentId":42,"name":"string","processingFee":0,"purchaseId":42,"purchaseInvoiceId":42,"purchasedAt":"2024-05-04T09:42:00+00:00","refundAmount":0,"returnShipmentId":42,"saleReturnId":42,"shippingIntegrationId":42,"shippingRateCacheId":42,"source":"jetti","status":"pending","stripeId":"string","stripeRefundId":"string","transferId":42,"type":"farfetch:postmen"}'
Request example
{
"amount": 0,
"baseAmount": 42.0,
"createdSource": "manual",
"dropshipmentId": 42,
"externalId": "string",
"fulfillmentId": 42,
"name": "string",
"processingFee": 0,
"purchaseId": 42,
"purchaseInvoiceId": 42,
"purchasedAt": "2024-05-04T09:42:00+00:00",
"refundAmount": 0,
"returnShipmentId": 42,
"saleReturnId": 42,
"shippingIntegrationId": 42,
"shippingRateCacheId": 42,
"source": "jetti",
"status": "pending",
"stripeId": "string",
"stripeRefundId": "string",
"transferId": 42,
"type": "farfetch:postmen"
}
Response examples (200)
{
"amount": 0,
"baseAmount": 42.0,
"createdAt": "2024-05-04T09:42:00+00:00",
"createdSource": "manual",
"dropshipmentId": 42,
"externalId": "string",
"fulfillmentId": 42,
"id": 42,
"name": "string",
"processingFee": 0,
"purchaseId": 42,
"purchaseInvoiceId": 42,
"purchasedAt": "2024-05-04T09:42:00+00:00",
"refundAmount": 0,
"returnShipmentId": 42,
"saleReturnId": 42,
"shippingIntegrationId": 42,
"shippingRateCacheId": 42,
"source": "jetti",
"status": "pending",
"stripeId": "string",
"stripeRefundId": "string",
"transferId": 42,
"type": "farfetch:postmen",
"updatedAt": "2024-05-04T09:42:00+00:00"
}