Creates a deposit request.
To complete the deposit, the customer is redirected to the deposit
link.
After the deposit, the customer is redirected to the redirectUrl
.
Corresponding transaction webhooks are sent to webhooks subscribers.
Deposit request resource.
websiteId required | string <= 50 characters Website ID of the deposit. This value specifies the website with which the deposit is associated. |
customerId required | string (CustomerId) <= 50 characters ID of the customer resource. |
currency required | string (CurrencyCode) = 3 characters Currency code in ISO 4217 format. |
strategyId | string or null <= 50 characters ID of a strategy to be applied for this request for
For more information, see Create a deposit strategy. |
amounts | Array of numbers or null <double> List of available deposit amounts. If |
object or null Custom amount restrictions.
If this value is | |
redirectUrl | string or null <uri> URL to redirect the customer to when a deposit is completed. The default value is the website URL. |
expirationTime | string or null <date-time> Date and time at which the deposit request expires. The default expiration time is one hour after the time the request is created. |
customPropertySetId | string or null <= 50 characters ID of a custom property set to apply to the request |
Deposit request created.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
websiteId required | string <= 50 characters Website ID of the deposit. This value specifies the website with which the deposit is associated. | ||||||||||
customerId required | string (CustomerId) <= 50 characters ID of the customer resource. | ||||||||||
currency required | string (CurrencyCode) = 3 characters Currency code in ISO 4217 format. | ||||||||||
id | string <= 50 characters ID of the deposit request. | ||||||||||
transactionId | string or null <= 50 characters ID of the transaction that is used in the deposit request. | ||||||||||
status | string Status of the request.
| ||||||||||
amounts | Array of numbers <double> List of available deposit amounts. If | ||||||||||
object or null 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 deposit request expires. The default expiration time is one hour from the time the request is created. | ||||||||||
propertiesSchema | object or null Defines properties the user can complete when they use the hosted deposit form. This field accepts JSON-schema drafts 4, 6, and 7. | ||||||||||
object or null Properties that are available for the user to complete when they use the hosted deposit form. Use this object to describe fields that are rendered and completed on the hosted 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": "dep_str_0YVJ64MAHTDPA97H8S7R5MYR1M",
- "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": "dep_req_0YVJ65BSGYC3EAT58SEX8KY6J7",
- "websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG",
- "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
- "transactionId": "txn_0YVDTQJ8YWDGQACV2N2N5SPWQ0",
- "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": { }
}
}