name |
use |
comment |
retval |
result code |
0 - success, 1 - error. Detailed information in field 'errors' |
retdesc |
description of result code |
detailed information in field 'errors' |
errors |
result code |
null - errors count is 0. if request is invalid, in this field this field will contain an array of errors |
errors\code |
error code |
string |
errors\message |
description of result code |
string |
content |
response body |
|
content\item_id |
paid product identifier |
integer |
content\cart_uid |
cart UID |
only if the product was purchased via the shopping cart |
content\name |
the invoice name |
string |
content\amount |
amount credited to your account make sure to check this value! |
|
content\currency_type |
currency of payment credited to your account (not the payment type!) |
WMZ | WMR | WME | WMU |
content\invoice_state |
state of an invoice |
number, possible values: 1 - payment is expected 2 - cancellation of payment 3 - successful payment 4 - payment overdue 35 - refund (not completed by the buyer) 5 - refund |
content\purchase_date |
date and time of order |
string |
content\date_pay |
payment confirmation date |
string. optional field |
content\agent_id |
partner ID if the sale was made through a partner |
integer |
content\agent_percent |
partner commission |
|
content\query_string |
base64-encoded string containing a set of parameters that were additionally passed from your site to the oplata.info payment page. The parameters may contain a User ID, values for tracking payment conversion, etc. After base64_decode, the string will look like this: "param1=value1¶m2=value2&..." |
example: bWVtYmVyX2lkPTIzNDE2NTQ0JnNvdXJjZT1yZWd1bGFyJmxheW91dF9pZD0xNSZnYV9jbGllbnRfaWQ9MjI2ODYyNDMyLjE0NjY2Njg5ODkmZm9ybV9pZD03 After base64_decode: member_id=23416544&source=regular&layout_id=15&ga_client_id=226862432.1466668989&form_id=7
|
content\unit_goods |
unit of the purchased product |
only for products with a non-fixed price |
content\cnt_goods |
number of units of the purchased product |
only for products with a non-fixed price |
content\promo_code |
promo code used by the customer during payment |
only if a promo code was used during payment |
content\bonus_code |
promo code given to the buyer as a bonus after payment |
only if a promo code was given after payment |
content\feedback |
response left by buyer |
|
content\feedback\deleted |
flag, whether or not the feedback is deleted |
false | false |
content\feedback\feedback |
text content of feedback |
|
content\feedback\feedback_type |
type of feedback |
"positive" or "negative" |
content\feedback\comment |
seller comment |
string |
content\unique_code_state |
unique code (status and verification dates) |
optional field |
content\unique_code_state\state |
transaction status |
integer, possible values: 1 - unique code not verified 2 - goods delivered, delivery not confirmed and not refuted 3 - goods delivered, delivery confirmed 4 - goods delivered, but refuted 5 - unique code verified, goods not delivered |
content\unique_code_state\date_check |
verification date |
string. optional field |
content\unique_code_state\date_delivery |
delivery date |
string. optional field |
content\unique_code_state\date_refuted |
date of refute |
string. optional field |
content\unique_code_state\date_confirmed |
confirmation date |
string. optional field |
content\options |
the list of parameters |
only for products with additional parameters |
content\options\option |
the parameter that the customer chose or specified |
|
content\options\option\id |
unique parameter identifier |
integer |
content\options\option\name |
parameter name |
string |
content\options\option\user_data |
parameter value chosen or specified by the customer |
string |
content\options\option\user_data_id |
parameter variant ID, according to buyer's choice |
integer. can be null (only for field with type 'radio' or 'select') |
content\buyer_info |
buyer information |
|
content\buyer_info\payment_method |
payment method |
string |
content\buyer_info\payment_aggregator |
payment provider |
string |
content\buyer_info\account |
account from which payment was made |
If payment via WebMoney |
content\buyer_info\email |
customer's email |
|
content\buyer_info\phone |
buyer phone number |
if it was specified |
content\buyer_info\skype |
Skype ID |
if it was specified |
content\buyer_info\whatsapp |
WhatsApp buyer ID |
if it was specified |
content\buyer_info\ip_address |
customer IP address |
|
content\owner |
marketplace |
|
content\day_lock |
holding period, days |
integer |
content\lock_state |
holding status |
string, possible values: free; locked. |
content\profit |
Credited to account |
float. optional field |
content\agent_fee |
Agent fee |
float. optional field |