Check the Activation Status

Depending on the project setup, two push messages may be sent, one for the General Contract (GCR), and one for the Payment Contract (PCR). We recommend to work with the General Contract.

After this, you need to read the General Contract to recognise whether it is approved or not:

API Request
GET /api/v2/General/Contracts/GCR_2JPUE9F2D7TTNJ3Z5R6V7Y9D8HB5FT HTTP/1.1
Host: connect-testing.secupay-ag.de
Authorization: Bearer qb56tjj1bcvo9n2nj4u38k84lo
Accept: application/json

If everything is fine, the API responds with 200 OK and the representation of the General Contract:

API Response
HTTP/1.1 200 OK
Content-Type: application/json
...
 
{
"object": "general.contracts",
"id": "GCR_2JPUE9F2D7TTNJ3Z5R6V7Y9D8HB5FT",
"id_old": 1015383,
"approved": true,
"merchant": {
"object": "general.merchants",
"id": "MRC_PTBGSDJPO0H024K2Q5FBOMD21UNATQ"
}
}

The property "approved" tells, whether the contract can receive payments (true) or not (false).