FAQGetting started and keys
HelpStatusOpen portal

FAQ

Answers to common questions, grouped by topic. For anything not covered here, see Help & Support or email [email protected].

Getting started and keys

Where do I find my API key?

Sign in to the merchant portal, then go to Settings > API keys.

I don’t see API keys in Settings.

You need to be an owner, or have permission to manage API keys. Your account also has to be enabled for the API. Contact your account manager.

Can I have more than one key?

Yes. Create one per system so you can revoke one without breaking the others.

How do I rotate a key without downtime?

Create a new key, move your integration to it, then revoke the old one. The Rotate button replaces the key in place, and the old key stops working immediately.

How do I revoke a key?

Select Revoke next to the key. It stops working immediately and cannot be undone.

Where should I store my key?

In an environment variable or a secrets manager on your server, never in source code.

What happens to a key when the person who made it leaves?

Nothing. Keys belong to your business today. Revoke it if needed. Keys tied to a team member are coming in a future release.

What’s the Secret key for?

Nothing yet. The Merchant API only uses the API key. Signed webhook deliveries, which let you check a webhook really came from Payva, are coming in a future update.

Is there a sandbox?

Not today. Every key works against your live account, including calls that create, change or delete products.

Can I call the API from a browser or mobile app?

No. Keep your key on your server. Anyone who has it can see your whole account.

Errors

Why do I get UNAUTHORIZED?

The x-api-key header is missing, the key is wrong, or it has expired, been rotated or been revoked.

Is there a rate limit?

We don’t publish a fixed limit. Please be respectful: ask only for the fields and pages you need, and use webhooks instead of checking for changes over and over. If you ever get RATE_LIMITED, wait a few seconds and retry, waiting longer each time.

Is the API down?

Check status.payva.com.

Orders and money

Are amounts in cents?

No. Amounts are in USD with cents, such as 812.5.

What time zone are dates in?

Timestamps include their time zone. Calendar dates, such as a payment due date, are YYYY-MM-DD.

What’s the difference between orderTotal and amountRemaining?

orderTotal is the total your customer owes for the order. amountRemaining is what’s still left to pay.

When do I get paid?

It depends on whether the order pays you upfront or as your customer pays. See How you get paid.

Integration

Do I need a GraphQL library?

No. Every request is a plain POST with a JSON body. curl works.

Can I get notified instead of checking for changes?

Yes, with webhooks. See Webhooks.

Can my code generator read the schema?

Yes. Introspection works with a valid API key.