Appearance
Bulk Create Fulfillment Attachments API
Endpoint
POST /fulfillment/{fulfillment_id}/attachment/bulk-create
Headers
| Key | Value |
|---|---|
| Authorization | Bearer change_to_your_access_token |
| X-S2-Organization | your_organization_id |
| Content-Type | application/json |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| fulfillment_id | string | Yes | The unique identifier of the fulfillment order |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| attachments | Attachment[] Object | Yes | Array of attachment objects to be added to the fulfillment. See Attachment Object for details |
Attachment Object
| Field | Type | Required | Description |
|---|---|---|---|
| fileName | string | Yes | The name of the attached file |
| path | string | Yes | The file path or URL where the attachment can be accessed |
| type | string | Yes | The 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"
}
]
}'