UpdatePurchaseOrders
Allows acceptors to associate purchase orders with agreement charges after an agreement is created.
Request Syntax
{
"purchaseOrders": [
{
"agreementId": "string",
"chargeId": "string",
"chargeRevision": number,
"purchaseOrderReference": "string"
}
]
}
Request Parameters
The request accepts the following data in JSON format.
Note
In the following list, the required parameters are described first.
- purchaseOrders
-
Contains information about purchase order associations.
Type: Array of PurchaseOrder objects
Array Members: Minimum number of 1 item. Maximum number of 86 items.
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Error Types.
- AccessDeniedException
-
User does not have sufficient access to perform this action.
- message
-
Description of the error.
- reason
-
The reason for the access denied exception.
- requestId
-
The unique identifier for the error.
HTTP Status Code: 400
- ConflictException
-
Request was denied due to a resource conflict.
- message
-
Description of the error.
- requestId
-
The unique identifier for the error.
- resourceId
-
The unique identifier of the resource involved in the conflict.
- resourceType
-
The type of the resource involved in the conflict.
HTTP Status Code: 400
- InternalServerException
-
Unexpected error during processing of request.
- message
-
Description of the error.
- requestId
-
The unique identifier for the error.
HTTP Status Code: 500
- ResourceNotFoundException
-
Request references a resource which does not exist.
- message
-
Description of the error.
- requestId
-
The unique identifier for the error.
- resourceId
-
The unique identifier for the resource.
- resourceType
-
The type of resource.
HTTP Status Code: 400
- ThrottlingException
-
Request was denied due to request throttling.
- message
-
Description of the error.
- requestId
-
The unique identifier for the error.
HTTP Status Code: 400
- ValidationException
-
The input fails to satisfy the constraints specified by the service.
- fields
-
The fields associated with the error.
- message
-
Description of the error.
- reason
-
The reason associated with the error.
- requestId
-
The unique identifier associated with the error.
HTTP Status Code: 400
Examples
Sample request
This example illustrates one usage of UpdatePurchaseOrders.
{ "purchaseOrders": [ { "agreementId": "agmt-EXAMPLE4e42-8715-6a1EXAMPLE95", "chargeId": "ch-EXAMPLE4b42-9614-5c3EXAMPLE56", "chargeRevision": 1, "purchaseOrderReference": "PO-456" } ] }
Sample response
This example illustrates one usage of UpdatePurchaseOrders.
{}
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: