Logo
Peach Payments Public API Documentation

Upload a file

POST {{baseUrl}}/api/attachments

Upload a file so it can be attached to a payment link.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Accept
string
Content-Type
string




RESPONSES

status OK

{ "fileId": "48965a78-59bf-4cdf-adc5-3344943052b1", "message": "File uploaded sucessfully" }



Curl
curl -X POST 'baseUrl/api/attachments' -H 'Accept: application/json' -H 'Content-Type: multipart/form-data' -F '{"name"=>"file", "value"=>nil, "datatype"=>"null"}='

ENDPOINTS