Skip to content

Update a request based on the requestId

put
https://api.mercadoe.com/v1/requests/{requestId}

Change fields of a specific purchase request with the provided values.

Request

Headers

X-ME-CORRELATION-ID
string
Internal client code to be identified in the webhook. It can be, for example, a product code in your ERP, an order number, etc.

Path Parameters

requestId
int32
required
the request

Body

application/json
integrationTag
string
required
Identification of the ME user used in the integration.
status
int32 | null
Status (The request enters as “Submitted”).
Possible status:
- 0 = Submitted
- 1 = Aproved
- 3 = Canceled
- 123 = ERP INCONSISTENCY
- 124 = WAITING FOR ERP INTEGRATION
- 125 = WAITING FOR ERP APPROVAL
clientRequestId
string | null
Request Id in the client’s ERP.
category
string | null
The category is the request Type.
isCanceled
boolean | null
Was this request canceled? (True/False)
- True = then cancels the whole request.
- False = then check each item of the request.
note
string | null
Request header text
emergency
boolean | null
Is this request an emergency?
clientDeliveryPlaceId
string | null
Client delivery place id
clientBillingPlaceId
string | null
Client billing place id
businessOrganizations
array of object | null
List with the business organizations of the request, consisting of the code and entityType fields.
attributes
array of object | null
List with the attributes of the request items, consisting of the name, value and description fields.
requestItems
array of object | null
List with the requested items.

Responses

202
400
404
Accepted

Body

application/json
correlationId
string