Create Purchase Order Association
POST/api/v1/purchase-order-associations
Create Purchase Order Association
Request​
- application/json
Body
associationType stringrequired
Possible values: [linked
]
The type of association to be created.
fromPoNumber stringrequired
Possible values: non-empty
Child PO Number
toPoNumber stringrequired
Possible values: non-empty
Parent PO Number
Responses​
- 201
- 400
- 401
- 429
- 500
Created
- application/json
- Schema
- Example (from schema)
Schema
data
object
associationType stringrequired
Possible values: [linked
]
fromPoNumber stringrequired
Possible values: non-empty
toPoNumber stringrequired
Possible values: non-empty
createdDate date-timenullable
The creation date of the Purchase Order Association
{
"data": {
"associationType": "linked",
"fromPoNumber": "string",
"toPoNumber": "string",
"createdDate": "2023-02-10 10:00:00"
}
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
message string
{
"errorCode": "Generic",
"message": "Bad Request"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
message string
{
"errorCode": "Generic",
"message": "Cannot retrieve session data because of expired token"
}
Rate-limiting Error
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
message string
{
"errorCode": "Generic",
"message": "Too many requests"
}
Internal Error
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
errors object
message string
{
"errorCode": "Generic",
"errors": {
"system": [
"Internal error detail message"
]
},
"message": "Internal server error"
}
Loading...