Perfect Gym api

Payment status

Payment status represents status of payment executed via online payment system.

Payment status properties

Payment status is described by the following properties

Name Type Description
status string Payment status.
Possible values:
  • Success
  • InProgress
  • Error
errorMessage string Error message in case status = Error.

Retrive payment status alt text

GET Payments/PaymentStatus

Returns status for online payment identified with paymentId.

Parameters

Name Type Description
paymentId string Payment identifier returned by payment method in payment details

Example request

In this example we fetch payment status for payment identified with paymentId = PGAPI_a12b55c5-d526-4e4e-ae9c

curl -i 
     -X GET 
     -H "Authorization: Bearer  $ACCESS_TOKEN"  
     http://yoursubdomain.perfectgym.com/Api/Payments/PaymentStatus
        ?paymentId=PGAPI_a12b55c5-d526-4e4e-ae9c

Example response

Status: 200 OK
{
  "elements": [
    {
      "status": "Success",
      "errorMessage": ""
    }
  ]
}
Perfect Gym api