PUT /transactions/{id}/refund.json

PUT /transactions/{id}/refund.json

Path parameters

  • id integer(int64) Required

    Numeric ID of the instance

    Minimum value is 1.

application/json

Body Required

Responses

PUT /transactions/{id}/refund.json
curl \
 -X PUT http://api.example.com/v1/transactions/{id}/refund.json \
 -H "Content-Type: application/json" \
 -d '{"amount":0,"baseAmount":42.0,"createdAt":"2023-05-04T09:42:00+00:00","createdSource":"manual","dropshipmentId":42,"externalId":"string","fulfillmentId":42,"id":42,"name":"string","processingFee":0,"purchasedAt":"2023-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":"stripe","updatedAt":"2023-05-04T09:42:00+00:00"}'
Request example
{
  "amount": 0,
  "baseAmount": 42.0,
  "createdAt": "2023-05-04T09:42:00+00:00",
  "createdSource": "manual",
  "dropshipmentId": 42,
  "externalId": "string",
  "fulfillmentId": 42,
  "id": 42,
  "name": "string",
  "processingFee": 0,
  "purchasedAt": "2023-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": "stripe",
  "updatedAt": "2023-05-04T09:42:00+00:00"
}
Response examples (200)
{
  "amount": 0,
  "baseAmount": 42.0,
  "createdAt": "2023-05-04T09:42:00+00:00",
  "createdSource": "manual",
  "dropshipmentId": 42,
  "externalId": "string",
  "fulfillmentId": 42,
  "id": 42,
  "name": "string",
  "processingFee": 0,
  "purchasedAt": "2023-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": "stripe",
  "updatedAt": "2023-05-04T09:42:00+00:00"
}