PUT /purchase-returns/{id}.json

PUT /purchase-returns/{id}.json

Path parameters

  • id integer(int64) Required

    Numeric ID of the instance

    Minimum value is 1.

application/json

Body Required

PUT /purchase-returns/{id}.json
curl \
 -X PUT http://api.example.com/v1/purchase-returns/{id}.json \
 -H "Content-Type: application/json" \
 -d '{"adminNotes":"string","aftershipId":"string","commercialInvoiceUrl":"string","createdAt":"2023-05-04T09:42:00+00:00","days":42,"durationTerms":"string","externalId":"string","grams":0,"id":42,"intercomMessageId":"string","labelError":"string","labelFileFormat":"png","labelRefund":false,"labelUrl":"string","muteError":false,"paid":0,"paymentStatus":"notPaid","price":0,"provider":"string","purchaseId":42,"quoteId":"string","reference":"string","serviceLevel":"string","serviceLevelTerms":"string","shippoLabelIds":["string"],"status":"requested","tags":["string"],"trackingCompany":"string","trackingNumber":"string","trackingStatus":"delivered","trackingStatusDate":"2023-05-04T09:42:00+00:00","trackingStatusDetails":"string","trackingUrl":"string","updatedAt":"2023-05-04T09:42:00+00:00"}'
Request example
{
  "adminNotes": "string",
  "aftershipId": "string",
  "commercialInvoiceUrl": "string",
  "createdAt": "2023-05-04T09:42:00+00:00",
  "days": 42,
  "durationTerms": "string",
  "externalId": "string",
  "grams": 0,
  "id": 42,
  "intercomMessageId": "string",
  "labelError": "string",
  "labelFileFormat": "png",
  "labelRefund": false,
  "labelUrl": "string",
  "muteError": false,
  "paid": 0,
  "paymentStatus": "notPaid",
  "price": 0,
  "provider": "string",
  "purchaseId": 42,
  "quoteId": "string",
  "reference": "string",
  "serviceLevel": "string",
  "serviceLevelTerms": "string",
  "shippoLabelIds": [
    "string"
  ],
  "status": "requested",
  "tags": [
    "string"
  ],
  "trackingCompany": "string",
  "trackingNumber": "string",
  "trackingStatus": "delivered",
  "trackingStatusDate": "2023-05-04T09:42:00+00:00",
  "trackingStatusDetails": "string",
  "trackingUrl": "string",
  "updatedAt": "2023-05-04T09:42:00+00:00"
}