Creates a cashier deposit request.
To complete the deposit, the customer is redirected to the cashier
link.
After the deposit, the customer is redirected to the redirectUrl
.
Corresponding transaction webhooks are sent to webhooks subscribers.
Cashier request resource.
websiteId required | string <= 50 characters Website ID of the cashier. This value specifies the website with which the cashier is associated. |
customerId required | string (CustomerId) <= 50 characters ID of the customer resource. |
strategyId | string <= 50 characters ID of a strategy to be applied for this request for |
currency required | string (CurrencyCode) = 3 characters Currency code in ISO 4217 format. |
amounts | Array of numbers <double> List of available deposit amounts. If |
object or null (CashierStrategyCustomAmount) Custom amount restrictions.
If this value is | |
redirectUrl | string <uri> URL to redirect the customer to when a deposit is completed. The default value is the website URL. |
expirationTime | string <date-time> Date and time at which the cashier request expires. The default expiration time is one hour from the time the request is created. |
customPropertySetId | string <= 50 characters ID of a custom property set to apply to the request |
Cashier request created.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
id | string <= 50 characters ID of the cashier deposit request. | ||||||||||
websiteId required | string <= 50 characters Website ID of the cashier. This value specifies the website with which the cashier is associated. | ||||||||||
customerId required | string (CustomerId) <= 50 characters ID of the customer resource. | ||||||||||
transactionId | string or null <= 50 characters ID of the transaction that is used in the cashier request. | ||||||||||
status | string Status of the request.
| ||||||||||
currency required | string (CurrencyCode) = 3 characters Currency code in ISO 4217 format. | ||||||||||
amounts | Array of numbers <double> List of available deposit amounts. If | ||||||||||
object or null (CashierStrategyCustomAmount) Custom amount restrictions.
If this value is | |||||||||||
redirectUrl | string <uri> URL to redirect the customer to when a deposit is completed. The default value is the website URL. | ||||||||||
expirationTime | string <date-time> Date and time at which the cashier request expires. The default expiration time is one hour from the time the request is created. | ||||||||||
propertiesSchema | object Defines properties the user can complete when they use the hosted cashier form. This field accepts JSON-schema drafts 4, 6, and 7. | ||||||||||
object Properties that are available for the user to complete when they use the hosted cashier form. Use this object to describe fields that are rendered and completed during the deposit process, in the cashier deposit form. | |||||||||||
createdTime | string <date-time> (CreatedTime) Date and time which is set automatically when the resource is created. | ||||||||||
updatedTime | string <date-time> (UpdatedTime) Date and time which updates automatically when the resource is updated. | ||||||||||
Array of objects Related links. | |||||||||||
object Embedded objects that are requested by the |
Unauthorized access. Invalid credentials used.
Access forbidden.
Invalid data sent.
{- "websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG",
- "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
- "strategyId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "currency": "USD",
- "amounts": [
- 0.01
], - "customAmount": {
- "minimum": 0.01,
- "multipleOf": 0.01,
- "maximum": 0.01
}, - "expirationTime": "2019-08-24T14:15:22Z",
- "customPropertySetId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
{- "id": "cash_req_0YVJ65BSGYC3EAT58SEX8KY6J7",
- "websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG",
- "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
- "transactionId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "status": "created",
- "currency": "USD",
- "amounts": [
- 0.01
], - "customAmount": {
- "minimum": 0.01,
- "multipleOf": 0.01,
- "maximum": 0.01
}, - "expirationTime": "2019-08-24T14:15:22Z",
- "propertiesSchema": {
- "type": "object",
- "properties": {
- "email": {
- "type": "string"
}, - "max": {
- "type": "integer",
- "minimum": 0,
- "exclusiveMaximum": 100
}
}, - "required": [
- "email"
]
}, - "properties": {
- "email": "email@example.com",
- "max": "33"
}, - "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
], - "_embedded": {
- "customer": { },
- "website": { },
- "transaction": { }
}
}