Skip to content

Bulk Create Fulfillment Attachments API

Endpoint

POST /fulfillment/{fulfillment_id}/attachment/bulk-create

Headers

KeyValue
AuthorizationBearer change_to_your_access_token
X-S2-Organizationyour_organization_id
Content-Typeapplication/json

Path Parameters

ParameterTypeRequiredDescription
fulfillment_idstringYesThe unique identifier of the fulfillment order

Request Body

FieldTypeRequiredDescription
attachmentsAttachment[] ObjectYesArray of attachment objects to be added to the fulfillment. See Attachment Object for details

Attachment Object

FieldTypeRequiredDescription
fileNamestringYesThe name of the attached file
pathstringYesThe file path or URL where the attachment can be accessed
typestringYesThe type of attachment. "OTHER"

Request Example

json
{
  "attachments": [
    {
      "fileName": "test",
      "path": "http://localhost:3000/_next/image?url=https%3A%2F%2Fcdn.ventmere.com%2Fproductdb%2Fuploads%2F2019-02%2FFB05_BJWZIE27r4.jpg&w=2048&q=75",
      "type": "OTHER"
    }
  ]
}

Response

The API returns a 20x status code (200 OK or 201 Created) with no content in the response body upon successful creation of the attachments.

Curl Example

bash
curl --location 'https://api.s2sell.io/fulfillment/9b49cebd-8252-44e2-ae91-f87d9e21e972/attachment/bulk-create' \
--header 'X-S2-Organization: 1651b1eb-6bc0-48d1-a581-2c972269070e' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJzMmNvcmUiLCJpc3MiOiJzMmNvcmUiLCJ1c2VySWQiOiI5NmNmYzZkZi05YWM0LTRhZDAtYTIyZC03YTJhNzU5YjBiYjQiLCJ1c2VyVmVyc2lvbiI6MCwiZXhwIjoxNzQ1NDc1NjQ0fQ.Z9RtY9PMe-EOLQA8oAePSveQ0s-2PoBbzNXlJ1vFuyY' \
--data '{
  "attachments": [
    {
      "fileName": "test",
      "path": "http://localhost:3000/_next/image?url=https%3A%2F%2Fcdn.ventmere.com%2Fproductdb%2Fuploads%2F2019-02%2FFB05_BJWZIE27r4.jpg&w=2048&q=75",
      "type": "OTHER"
    }
  ]
}'