Use this API to provide grants on a customer to other customers. Refer Customer grants section for information about what is a grant. For the successful execution of this API:
| Actor | Permission |
|---|---|
| User | All of the following are required:
|
| Client Application | No additional permission is required. |
The request body is mandatory. Request body can be in either XML or JSON format.
| Name | Description |
|---|---|
| grantsOn.customer.id | Customer on whom the grants are provided. |
| grantsTo.customer.id | This specifies the customers to whom the grant is provided. |
object (grantsOn) | |
object (grantsTo) |
When created successfully
Bad Request
Unauthorized
Forbidden
Not Acceptable
Internal server error
Provides grants to a single customer
{- "grantsOn": {
- "customer": [
- {
- "id": "1000"
}
]
}, - "grantsTo": {
- "customer": [
- {
- "id": "1001"
}
]
}
}{- "code": "400-101",
- "developerMessage": "Unsupported query parameter(s) supplied: '<query_parameter>'."
}