ApplyInvoice
Submits an invoicing request.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bss:ApplyInvoice |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InvoiceAmount |
integer |
Yes |
The invoice amount, in cents. |
10000 |
| CustomerId |
integer |
Yes |
The invoicing customer ID. This ID corresponds to the |
124132423 |
| AddressId |
integer |
Yes |
The mailing address ID. This ID corresponds to the |
237958367 |
| InvoicingType |
integer |
No |
The invoice type. Valid values:
|
1 |
| ProcessWay |
integer |
No |
The invoicing channel. This parameter must be set to 1. The following list describes the channel types:
|
1 |
| ApplyUserNick |
string |
Yes |
The applicant nickname. The system does not verify this value. |
test |
| InvoiceByAmount |
boolean |
No |
Specifies whether to create an invoice for a specific amount. If you set this parameter to |
true |
| UserRemark |
string |
No |
The user's remarks. |
test |
| SelectedIds |
array |
Yes |
The IDs of the items to be invoiced. These IDs correspond to the |
384752367 |
|
integer |
No |
384752367 |
||
| emails |
string |
No |
The email addresses of the invoice recipient. To specify multiple addresses, separate them with commas (,). The value cannot exceed 200 characters. |
aaa@aa.com,bbb@bb.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The status code. |
Success |
| Message |
string |
The response message. |
Successful! |
| RequestId |
string |
The request ID. |
6000EE23-274B-4E07-A697-FF2E999520A4 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Data |
object |
The returned data. |
|
| InvoiceApplyId |
integer |
The ID of the invoice request. |
1323125534 |
Examples
Success response
JSON format
{
"Code": "Success",
"Message": "Successful!",
"RequestId": "6000EE23-274B-4E07-A697-FF2E999520A4",
"Success": true,
"Data": {
"InvoiceApplyId": 1323125534
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.