Update Transaction

 

Update the state of an existing transaction to open, closed or canceled.

How to use Mobage Bank API
For more details on how to use the Mobage Bank API, please refer to the following pages.
ngCore SDK | Native SDK | Unity SDK

URI Fragment

/bank/debit/@app/{transactionId}

Supported Signing Methods

OAuth2 Authorization

Please refer here for the details of authentication flow and here for how to sign request to generate the Authorization header.

HTTP Method

PUT

Request Header

  • The Authorization header is necessary for this call to succeed. Use "Authorization: bearer oauth2_token" as shown in below samples for this API.
  • Content-Type: application/json; charset=utf-8

URL Query Parameters

Parameter Name

Type

Description

Required

fileds

Array

The field to update. Only "state" is allowed.

No

format

String

Currently only "json" can be used.

No

Request Body

A JSON string with following keys and values.

Response Status Code

HTTP Status Code

HTTP Status Message

Meaning

202

Accepted

Request was accepted for processing.

400

Bad Request

Corrupt request data on the client side

401

Unauthorized

Authorization error

403

Forbidden

The resource exists, but access is not possible due to a reason other than an authorization error.

404

Not Found

The resource does not exist.

409

Conflict

Illegal state.

500

Internal Server Error

An error on the API server side

503

Service Unavailable

The API cannot be used temporarily

Response Body

  • The transaction object with the following parameters in JSON format for the specified transaction if successful.
  • Content-Type: application/json; charset=utf-8
     

    Parameter Name

    Description

    published

    The date and time when the transaction is created

    comment

    Comment for the transaction

    id

    The transaction ID

    updated

    The date and time when the transaction is updated

    items

    An array containing items in this transaction. Only one item is allowed currently.

    items[].item

    An object with following details

    items[].item.imageUrl

    URL to an image file that represents the item

    items[].item.name

    The item name

    items[].item.id

    The item ID.

    items[].item.price

    The item price.

    items[].item.description

    Description of the item.

    items[].quantity

    Number of items to purchase in this transaction.

    state

    The current state of the transaction.

Example Request & Response

Base String
Http Request
HTTP Response

PREVIOUS

Create Transaction

NEXT

Get Transaction