Create Invoice
Create a new invoice.
Request Parameters
| Name | Type | Description |
|---|---|---|
public_keyRequired | String | Merchant identifier. Example: `i000000001` |
sumRequired | Number | Payment amount. Example: `100`, `20.50` |
displayRequired | Number | Display the invoice. Values: `1` or `0` |
save_as_templateRequired | Number | Save as template. Values: `1` or `0` |
status_installmentOptional | Number | Enable installment payment. Values: `1` or `0` |
nameOptional | String | Name |
descriptionOptional | String | Payment description. |
phoneOptional | String | Phone number. |
emailOptional | String | Email address. |
innOptional | String | Tax identification number (VOEN). |
contract_numberOptional | String | Contract number. |
merchant_order_idOptional | String | Merchant order ID. |
period_fromRequired | Date | Invoice start date. |
period_toRequired | Date | Invoice end date. |
Request Example
Send Request
Payload
{ "public_key": "i000000001", "sum": 100, "display": 1, "save_as_template": 0, "name": "John Doe", "description": "Service payment", "period_from": "2024-01-01", "period_to": "2024-12-31"}1DATA=$(echo -n '{"public_key":"i000000001","sum":100,"display":1,"save_as_template":0,"name":"John Doe","description":"Service payment","period_from":"2024-01-01","period_to":"2024-12-31"}' | base64)2SIGNATURE=$(echo -n "$PRIVATE_KEY$DATA$PRIVATE_KEY" | openssl dgst -sha1 -binary | base64)3
4curl -X POST *** \5-H "Content-Type: application/x-www-form-urlencoded" \6-d "data=$DATA&signature=$SIGNATURE"Response Parameters
| Name | Type | Description |
|---|---|---|
statusRequired | String | Operation result: `success` or `error` |
idOptional | Number | Created invoice ID. Present on success. |
messageOptional | String | Error description. Present on failure. |
trace_idRequired | String | Unique request identifier for debugging. Provide this to Epoint support for issue investigation. |
Response
1{2 "status": "success",3 "id": 12345,4 "trace_id": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"5}