403 forbidden

403 forbidden

SandipParmar1
Visitor
1 0 0

 

Issue Summary: Shopify Usage Charge API Returning 403 Forbidden

Problem:

I am trying to create a usage charge using Shopify's Usage Charge API, but I keep receiving a 403 Forbidden response with the error:

 
{"errors": "Forbidden"}

What I've Tried So Far:
  1. Checked API Access Scopes → My app has the correct scopes for managing billing
    $scopes = [
    'read_customers',
    'read_themes',
    'write_themes',
    'read_orders',
    'read_products',
    'write_customers',
    'read_customers',
    'write_script_tags',
    'read_merchant_managed_fulfillment_orders',
    'read_third_party_fulfillment_orders',
    'read_customer_payment_methods',
    'write_own_subscription_contracts',
    'read_own_subscription_contracts',
    'customer_read_own_subscription_contracts',
    'customer_write_own_subscription_contracts',
    'write_discounts',
    'write_orders',
    'read_all_orders'
    ];
  2. Verified Access Token → The token is correct and works for other API calls.
  3. Checked Recurring Charge Status → The charge exists and is "active".
  4. Ensured Correct Charge ID → I am passing a valid charge ID in my API request.
  5. Tested Other API Endpoints → Other endpoints like /shop.json and /products.json work fine.
  6. Tried API Request from Different Network → Same issue occurs.
Replies 0 (0)