curl --location --request POST 'https://identity.payroc.com/authorize' --header 'x-api-key: <api key>'
{"access_token": "eyJhbGc....adQssw5c","expires_in": 3600,"scope": "service_a service_b","token_type": "Bearer"}
curl-H "Content-Type: application/json"-H "Authorization: <Bearer token>"-H "Idempotency-Key: <UUID v4>"
curl --request post \--url https://api.payroc.com/v1/pricing-intents \--header 'Authorization: Bearer <access token>' \--header 'Content-Type: application/json' \--header 'Idempotency-Key: abc123' \--data '{"key":"abc123","metadata":{"internalReference":"2345"},"country":"US","version":"4.0","base":{"addressVerification":5,"annualFee":{"billInMonth":"december","amount":100},"regulatoryAssistanceProgram":15,"pciNonCompliance":4995,"merchantAdvantage":10,"platinumSecurity":{"billingFrequency":"monthly"},"maintenance":500,"minimum":100,"voiceAuthorization":95,"chargeback":2500,"retrieval":1500,"batch":1500,"earlyTermination":57500},"processor":{"card":{"planType":"interchangePlus","fees":{"mastercardVisaDiscover":{"volume":1.25,"transaction":0},"amex":{"type":"optBlue","volume":1.25,"transaction":0},"pinDebit":{"additionalDiscount":1.25,"transaction":0,"monthlyAccess":0},"electronicBenefitsTransfer":{"transaction":0},"enhancedInterchange":{"enrollment":0,"creditToMerchant":1.25},"specialityCards":{"transaction":0}}},"ach":{"fees":{"transaction":50,"batch":1000,"returns":400,"unauthorizedReturn":1999,"statement":800,"monthlyMinimum":20000,"accountVerification":100,"discountRateUnder10000":1.25,"discountRateAbove10000":1.25}}},"gateway":{"fees":{"monthly":0,"setup":0,"perTransaction":0,"perDeviceMonthly":0,"additionalServiceMonthly":0}}}'
application/json
{"id": "5","createdDate": "2020-09-22T09:00:00.000Z","lastUpdatedDate": "2020-09-22T09:00:00.000Z","status": "pendingReview","key": "string","metadata": {"internalReference": "2345"},"country": "US","version": "4.0","base": {"addressVerification": 5,"annualFee": {"billInMonth": "december","amount": 100},"regulatoryAssistanceProgram": 15,"pciNonCompliance": 4995,"merchantAdvantage": 10,"platinumSecurity": {"billingFrequency": "monthly","amount": 1295},"maintenance": 500,"minimum": 100,"voiceAuthorization": 95,"chargeback": 2500,"retrieval": 1500,"batch": 1000,"earlyTermination": 57500},"processor": {"card": {"planType": "interchangePlus","fees": {"mastercardVisaDiscover": {"volume": 1.25,"transaction": 5},"amex": {"type": "optBlue","volume": 1.25,"transaction": 10},"pinDebit": {"additionalDiscount": 1.25,"transaction": 10,"monthlyAccess": 1200},"electronicBenefitsTransfer": {"transaction": 10},"enhancedInterchange": {"enrollment": 1000,"creditToMerchant": 5.25},"specialityCards": {"transaction": 10}}},"ach": {"fees": {"transaction": 50,"batch": 1000,"returns": 400,"unauthorizedReturn": 1999,"statement": 800,"monthlyMinimum": 20000,"accountVerification": 100,"discountRateUnder10000": 5.25,"discountRateAbove10000": 10}}},"gateway": {"fees": {"monthly": 1000,"setup": 25000,"perTransaction": 0,"perDeviceMonthly": 0,"additionalServiceMonthly": 0}}}