Note: You can read more about the Player Order Reporting API in the Guides section.
When a player makes a purchase, Appcharge processes the transaction. After the player is charged, Appcharge sends an update to the publisher with all the transaction details using a predefined webhook.
Response fields reference:
- totalCount - the total count of orders that were returned.
- results - the array containing the orders:
- acOrderId - Appcharge order Id.
- currency - The ISO 4217 currency code that the player paid with.
- currencyExchangeCost - The cost of the exchange. There is no conversion cost for USD.
- amountTotal - price in cents - the player paid price amount in cents of the local currency, for example: 1999 Represents 19.99.
- acOfferId - Appcharge offer Id.
- publisherOfferId - the publisher offer Id as was reported to Appcharge.
- offerName - the name of the offer.
- createdAt - the time when the order was created, in UTC.
- playerId - the ID of the player that placed the order, that is returned by the publisher, in the authentication phase.
- state - the status of the order (as is described in the "statuses" body param).
- reason - the reason in case of a failure.
- offerDetails - the details of the purchased offer:
- products - an array containing the products that were included in the purchased offer:
- name - the name of the product.
- publisherProductId - the Id that the publisher assigned to the product.
- amount - the quantity of the product.
- price - the price point (in USD) of the offer.
- products - an array containing the products that were included in the purchased offer:
- tax - The player paid tax amount in cents of the local currency
- taxInDollar - The player paid tax amount in USD cents
Statuses Parameter Options
This table lists the possible values for the statuses
parameter, each representing a different stage or outcome of a transaction. The values range from the initial creation of a transaction to the various stages of payment, refund, charge, and dispute processes.
Status | Description |
---|---|
created | The order has been created. |
payment_pending | The transaction has been initiated, but payment information has not yet been submitted. |
payment_succeed | Payment has been successfully completed. |
payment_failed | Payment attempt was unsuccessful. |
payment_refund_pending | Refund has been requested and is awaiting processing. |
payment_refund_requires_action | Additional action is needed to process the refund. |
payment_refunded | Refund has been successfully processed. |
payment_refund_failed | Refund attempt was unsuccessful. |
payment_refund_canceled | Refund process has been canceled. |
payment_canceled | Payment has been canceled. |
charge_pending | The reward is being processed but is not yet completed. |
charge_succeed | The reward has been successfully completed. |
charge_failed | The reward attempt was unsuccessful. |
payment_dispute_open | A dispute has been opened against the payment. |
payment_dispute_lost | The dispute has been resolved in favor of the customer. |
payment_dispute_won | The dispute has been resolved in favor of the merchant. |
payment_dispute_evidence_submitted | Evidence has been submitted for the dispute. |
payment_dispute_inquiry_open | An inquiry has been opened regarding a potential dispute. |
payment_dispute_inquiry_evidence_submitted | Evidence has been submitted for the dispute inquiry. |
payment_dispute_inquiry_won | The inquiry has been resolved in favor of the merchant. |