Ir al contenido

Commercial approval or rejection (ACECF, R9)

POST
/received-documents/{receivedId}/approval
curl --request POST \
--url https://acme.gravitastec.com/api/v1/received-documents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/approval \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: example' \
--data '{ "decision": "accepted", "rejectionReason": "example" }'
receivedId
required
string format: uuid
Idempotency-Key
required
string
<= 64 characters
Media typeapplication/json
object
decision
required
string
Allowed values: accepted rejected
rejectionReason
string
<= 250 characters

Approval accepted for processing

Not found or outside the credential scope

Media typeapplication/problem+json
object
type
string
title
string
status
integer
code
string
errors
Array<object>
object
path
string
message
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"code": "example",
"errors": [
{
"path": "example",
"message": "example"
}
]
}

Already decided