Skip to main content
POST

Authorizations

Authorization
string
header
required

Send your API key as Authorization: ApiKey pc_<your-key>. The API also accepts the key without the ApiKey prefix. API keys authenticate requests to /api/partner/v1/*. Contact GroGov support to rotate your key or deactivate your API account. Rotation invalidates the previous key. Account deactivation blocks both API keys and access tokens.

Headers

Idempotency-Key
string

Unique key to prevent duplicate charges on retry.

Maximum string length: 255

Body

application/json
portalId
string<uuid>
required

The ID of an agency's payment configuration in GroGov. The portal determines the payment gateway and service fee configuration. GroGov provides the portal IDs your API account can access.

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

amountCents
integer
required

Total amount in cents. Must equal sum of line item amounts.

Example:

10000

currency
enum<string>
default:USD
required
Available options:
USD
paymentMethod
object
required
lineItems
object[]
required
Required array length: 1 - 50 elements
referenceId
string

Your identifier for the payment. This is separate from each line item's referenceId. GroGov also uses this payment-level value to check case-specific payment restrictions.

Maximum string length: 255
Example:

"CASE-2024-00123"

capture
enum<string>
default:sale

sale charges immediately. auth (authorize now, capture later) is not supported and returns 501 CAPTURE_NOT_SUPPORTED. The response reports this as captureMode.

Available options:
sale,
auth
captureMode
enum<string>
deprecated

Deprecated alias of capture, accepted for clients built against an earlier version of this spec. If both are sent they must match, or the request is rejected with 400 VALIDATION_ERROR.

Available options:
sale,
auth
payer
object

Response

Payment created

success
boolean
Example:

true

data
object
message
string