Overview

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.
    • 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.

StatusDescription
createdThe order has been created.
payment_pendingThe transaction has been initiated, but payment information has not yet been submitted.
payment_succeedPayment has been successfully completed.
payment_failedPayment attempt was unsuccessful.
payment_refund_pendingRefund has been requested and is awaiting processing.
payment_refund_requires_actionAdditional action is needed to process the refund.
payment_refundedRefund has been successfully processed.
payment_refund_failedRefund attempt was unsuccessful.
payment_refund_canceledRefund process has been canceled.
payment_canceledPayment has been canceled.
charge_pendingThe reward is being processed but is not yet completed.
charge_succeedThe reward has been successfully completed.
charge_failedThe reward attempt was unsuccessful.
payment_dispute_openA dispute has been opened against the payment.
payment_dispute_lostThe dispute has been resolved in favor of the customer.
payment_dispute_wonThe dispute has been resolved in favor of the merchant.
payment_dispute_evidence_submittedEvidence has been submitted for the dispute.
payment_dispute_inquiry_openAn inquiry has been opened regarding a potential dispute.
payment_dispute_inquiry_evidence_submittedEvidence has been submitted for the dispute inquiry.
payment_dispute_inquiry_wonThe inquiry has been resolved in favor of the merchant.