Skip to content
payrocdevelopers

Fully replace a pricing intent via PUT.

Fully replace a pricing intent via PUT.

Actors

Integratorclient

Replaces the pricing intent; the only API caller in this workflow.

Payroc gatewayapi

The Payroc API surface these steps call.

Sequence

Integrator
Payroc gateway

Follow the numbered steps in order. Each step is described under Steps.

Steps

Follow the workflow

Simulate API steps with synthetic inputs. Confirm manual steps yourself before continuing.

Interactive workflow tests are unavailable in this profile. Use the linked reference and source files to send API requests with your own client.

  1. 1

    Replace pricing intent

    API request

    Overwrite the entire pricing intent with a complete MPA 5.2 payload via PUT. Returns 204 No Content (no body). Does not affect already-onboarded merchants.

    Integrator → Payroc gateway

    PUT/pricing-intents/{pricingIntentId}
Arazzo workflow source
arazzo: 1.0.0
info:
  title: Replace a pricing intent
  summary: Fully overwrite an existing pricing intent with a complete MPA 5.2
    payload (PUT).
  description: |
    Full replace of a pricing intent - the reusable pricing template assigned to a processing account during boarding. Overwrites the entire resource with a complete MPA 5.2 payload via PUT.
    Agent gotchas: - The write payload is MPA version 5.2 (`writePricingIntent`); `country`,
      `version`, `base`, and `key` are required. Fee amounts are integers in the
      currency's lowest denomination (cents).
    - PUT returns 204 No Content (no body). - Updating a pricing intent never affects merchants you have already
      onboarded; it only changes the template for future assignments.

    To change only specific fields, use the patch-a-pricing-intent workflow (partial RFC 6902 JSON Patch, PATCH) instead - a given amendment uses one or the other, not both.
  version: 1.0.0
sourceDescriptions:
  - name: payroc-api
    url: /openapi.yaml
    type: openapi
workflows:
  - workflowId: replace-a-pricing-intent
    summary: Fully replace a pricing intent via PUT.
    description: |
      Overwrite the entire pricing intent identified by `pricingIntentId` with a complete MPA 5.2 payload (updatePricingIntent). Returns 204 No Content.
    x-actors:
      - id: integrator
        name: Integrator
        type: client
        description: Replaces the pricing intent; the only API caller in this workflow.
      - id: payroc-gateway
        name: Payroc gateway
        type: api
        description: The Payroc API surface these steps call.
    inputs:
      type: object
      required:
        - pricingIntentId
      properties:
        pricingIntentId:
          type: string
          description: Identifier Payroc assigned to the pricing intent to replace.
          example: "5"
        key:
          type: string
          description: Your own reference for the pricing intent, stored for your records.
          example: Your-Unique-Identifier
    steps:
      - stepId: replacePricingIntent
        x-actor: integrator
        x-actor-to: payroc-gateway
        x-label: replace pricing intent
        description: |
          Overwrite the entire pricing intent with a complete MPA 5.2 payload via PUT. Returns 204 No Content (no body). Does not affect already-onboarded merchants.
        operationId: updatePricingIntent
        parameters:
          - name: pricingIntentId
            in: path
            value: $inputs.pricingIntentId
        requestBody:
          contentType: application/json
          payload:
            key: $inputs.key
            metadata:
              yourCustomField: abc123
            country: US
            version: "5.2"
            base:
              addressVerification: 6
              annualFee:
                billInMonth: june
                amount: 9900
              regulatoryAssistanceProgram: 15
              pciNonCompliance: 4995
              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.5
                    transaction: 5
                  amex:
                    type: optBlue
                    volume: 1.5
                    transaction: 5
                  pinDebit:
                    additionalDiscount: 1.25
                    transaction: 10
                    monthlyAccess: 1200
                  electronicBenefitsTransfer:
                    transaction: 10
                  specialityCards:
                    transaction: 10
              ach:
                fees:
                  transaction: 50
                  batch: 5
                  returns: 400
                  unauthorizedReturn: 1999
                  statement: 800
                  monthlyMinimum: 20000
                  accountVerification: 10
                  discountRateUnder10000: 5.25
                  discountRateAbove10000: 10
            gateway:
              fees:
                monthly: 2000
                setup: 5000
                perTransaction: 2000
                perDeviceMonthly: 10
            services:
              - name: hardwareAdvantagePlan
                enabled: true
        successCriteria:
          - condition: $statusCode == 204
Download Arazzo

Search documentation

API reference169
Guides118
Knowledge38
legal1
Solutions32
Workflows74
↑↓highlight↵openView all search results

Menu

Theme

Sign out

Your saved plans remain in your organization. This browser’s private draft and account view will be cleared.

Talk to an engineer