Subscription API - APPROVED status?

marcelopaixaor
Contributor
Contributor

I had a situation where a customer made a subscription to my service, it was created with the status APPROVAL_PENDING as expected, but then transitioned to the status APPROVED. After this, it was cancelled by the user.

What I don't understand is why the status APPROVED is being used.
I saw the following explanation: https://www.paypal-community.com/t5/REST-APIs/When-creating-a-subscription-how-does-the-APPROVED-sta...

But I don't use the "start_time" parameter when creating the subscription.

Also, the APPROVED subscription GET response lacks the "billingInfo" field.

This is the GET response shortly after the transition to APPROVED status (13/08/2021 14:08:27,487 UTC😞

 

 

{
    "status": "APPROVED",
    "id": "I-XXXXXXXXXXXX",
    "plan_id": "P-XXXXXXXXXXXXXXXXXXXXX",
    "start_time": "2021-08-13T14:03:59Z",
    "quantity": "10",
    "subscriber": {
        "email_address": "xxxxxxxx.com.br",
        "payer_id": "xxxxxx",
        "name": {
            "given_name": "xxxxxxxxxx",
            "surname": "xxxxxxxxxxxxxxxx"
        }
    },
    "create_time": "2021-08-13T14:03:59Z",
    "plan_overridden": false,
    "links": [
        {
            "href": "https://api.paypal.com/v1/billing/subscriptions/I-XXXXXXXXXXXX",
            "rel": "self",
            "method": "GET"
        },
        {
            "href": "https://api.paypal.com/v1/billing/subscriptions/I-XXXXXXXXXXXX/activate",
            "rel": "activate",
            "method": "POST"
        }
    ]
}

 

 

 

 

 

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.