Update a payment instrument assignment
/fscmRestApi/resources/11.13.18.05/instrumentAssignments/{PaymentInstrumentAssignmentId}
Request
-
PaymentInstrumentAssignmentId(required): integer(int64)
Identifier of the payment instrument assignment.
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
- application/json
object
-
EndDate: string
(date)
Date when the relationship between the payment instrument and the payer or payee becomes inactive within a payment instrument assignment.
-
Intent: string
Purpose of the payment instrument assignment. The value is based on the payment function of the external payee or the external payer. The following are the expected values: PAYABLES_DISB - Supplier, EMPLOYEE_EXP - Person, EMPLOYEE_EXP - Employee, AR_CUSTOMER_REFUNDS - Refund, CUSTOMER_PAYMENT - Customer, ONETIME_PAYMENT - Onetime, and ADHOC_PAYMENT - Adhoc.
-
PersonId: integer
Person identifier when the external payee is an employee.
-
PrimaryIndicator: string
Title:
Primary
Maximum Length:30
Indicates whether the payment instrument, as a component of a payment instrument assignment, is the primary payment instrument for the payer or payee. A primary payment instrument automatically populates the transactions. -
StartDate: string
(date)
Title:
From Assignment Date
Date when the relationship between the payment instrument and the payer or payee becomes active within a payment instrument assignment.
Response
- application/json
Default Response
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
object
-
EndDate: string
(date)
Date when the relationship between the payment instrument and the payer or payee becomes inactive within a payment instrument assignment.
-
Intent: string
Purpose of the payment instrument assignment. The value is based on the payment function of the external payee or the external payer. The following are the expected values: PAYABLES_DISB - Supplier, EMPLOYEE_EXP - Person, EMPLOYEE_EXP - Employee, AR_CUSTOMER_REFUNDS - Refund, CUSTOMER_PAYMENT - Customer, ONETIME_PAYMENT - Onetime, and ADHOC_PAYMENT - Adhoc.
-
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
MaskedBankAccountNumber: string
Title:
Number
Read Only:true
Maximum Length:100
Bank account number, as a component of a payment instrument assignment, that returns masked values for display purposes. -
MaskedCreditCardNumber: string
Title:
Number
Read Only:true
Maximum Length:30
Credit card number, as a component of a payment instrument assignment, that returns masked values for display purposes. -
PaymentFlow: string
Title:
Payment Flow
Maximum Length:30
Payment flow of funds capture or disbursement transactions within a payment instrument assignment. Values are from the IBY_PAYMENT_FLOW lookup. -
PaymentInstrumentAssignmentId: integer
(int64)
Identifier of the payment instrument assignment.
-
PaymentInstrumentId: integer
(int64)
Identifier of the bank account or credit card payment instrument, which is a component of a payment instrument assignment.
-
PaymentInstrumentType: string
Title:
Instrument Type
Maximum Length:30
Type of payment instrument, which is a component of a payment instrument assignment. Values from the IBY_INSTRUMENT_TYPES lookup include BANKACCOUNT, CREDITCARD, and DEBITCARD. -
PaymentPartyId: integer
(int64)
Identifier of the external payer or external payee who is the party component of the payment instrument assignment.
-
PersonId: integer
Person identifier when the external payee is an employee.
-
PrimaryIndicator: string
Title:
Primary
Maximum Length:30
Indicates whether the payment instrument, as a component of a payment instrument assignment, is the primary payment instrument for the payer or payee. A primary payment instrument automatically populates the transactions. -
StartDate: string
(date)
Title:
From Assignment Date
Date when the relationship between the payment instrument and the payer or payee becomes active within a payment instrument assignment. -
VendorId: integer
(int64)
Read Only:
true
Vendor identifier when the account owner party is a supplier.
array
Links
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
The name of the relation to the resource instance. Example: self.
object
-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Examples
Example 1
The following example shows how to update a payment instrument assignment by submitting a PATCH request on the REST resource using cURL.
curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X PATCH -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100173366601
Example Request Body
The following example shows the contents of the request body in JSON format:
{ "EndDate": "2021-12-31", "Intent": "Supplier" }
Example Response Body
The following example shows the contents of the response body in JSON format:
{ "PaymentInstrumentAssignmentId": 300100173366601, "PaymentPartyId": 300100173366595, "EndDate": "2021-12-31", "Intent": "Supplier", ... "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100173366601", "name": "instrumentAssignments", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100173366601", "name": "instrumentAssignments", "kind": "item" } ] }
Example 2
The following example shows how to update a payment instrument assignment for a supplier site by submitting a PATCH request on the REST resource using cURL.
curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X PATCH -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181652558
Example Request Body
The following example shows the contents of the request body in JSON format:
{ "EndDate": "2021-12-31", "Intent": "Supplier" }
Example Response Body
The following example shows the contents of the response body in JSON format:
{ "PaymentInstrumentAssignmentId": 300100181538391, "PaymentPartyId": 300100180582391, "PaymentInstrumentId": 249304, "PaymentFlow": "DISBURSEMENTS", "PaymentInstrumentType": "BANKACCOUNT", "PrimaryIndicator": "Y", "StartDate": "2019-11-06", "EndDate": "4712-12-31", "MaskedBankAccountNumber": "XXXXXXXXXX1047", "MaskedCreditCardNumber": null, "VendorId": null, "PersonId": null, "Intent": "Onetime", "links": [ { "rel": "self", "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181538391", "name": "instrumentAssignments", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel": "canonical", "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181538391", "name": "instrumentAssignments", "kind": "item" }, { "rel": "lov", "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181538391/lov/PersonPVA", "name": "PersonPVA", "kind": "collection" } ] }
Example 1
The following example shows how to update a payment instrument assignment by submitting a PATCH request on the REST resource using cURL.
curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X PATCH -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100173366601
Example Request Body
The following example shows the contents of the request body in JSON format:
{ "EndDate": "2021-12-31", "Intent": "Supplier" }
Example Response Body
The following example shows the contents of the response body in JSON format:
{ "PaymentInstrumentAssignmentId": 300100173366601, "PaymentPartyId": 300100173366595, "EndDate": "2021-12-31", "Intent": "Supplier", ... "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100173366601", "name": "instrumentAssignments", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100173366601", "name": "instrumentAssignments", "kind": "item" } ] }
Example 3
The following example shows how to update a payment instrument assignment for a customer site for customer payments by submitting a PATCH request on the REST resource using cURL.
curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X PATCH -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181652559
Example Request Body
The following example shows the contents of the request body in JSON format:
{ "EndDate": "2021-12-31", "Intent": "Customer" }
Example Response Body
The following example shows the contents of the response body in JSON format:
{ "PaymentInstrumentAssignmentId": 300100181652559, "PaymentPartyId": 1424, "PaymentInstrumentId": 300100181126923, "PaymentFlow": "FUNDS_CAPTURE", "PaymentInstrumentType": "BANKACCOUNT", "PrimaryIndicator": "N", "StartDate": "2019-11-06", "EndDate": "2021-12-31", "MaskedBankAccountNumber": null, "MaskedCreditCardNumber": null, "VendorId": null, "PersonId": null, "Intent": "Customer", "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181652559", "name": "instrumentAssignments", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000378" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181652559", "name": "instrumentAssignments", "kind": "item" }, { "rel": "lov", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181652559/lov/PersonPVA", "name": "PersonPVA", "kind": "collection" } ] }
Example 4
The following example shows how to update a payment instrument assignment for customer refunds by submitting a PATCH request on the REST resource using cURL.
curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X PATCH -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181652562
Example Request Body
The following example shows the contents of the request body in JSON format:
{ "EndDate": "2021-12-31", "Intent": "Customer" }
Example Response Body
The following example shows the contents of the response body in JSON format:
{ "PaymentInstrumentAssignmentId": 300100181652562, "PaymentPartyId": 300100180898002, "PaymentInstrumentId": 300100181652560, "PaymentFlow": "DISBURSEMENTS", "PaymentInstrumentType": "BANKACCOUNT", "PrimaryIndicator": "Y", "StartDate": "2019-11-06", "EndDate": "2021-12-31", "MaskedBankAccountNumber": null, "MaskedCreditCardNumber": null, "VendorId": null, "PersonId": null, "Intent": "Customer", "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181652562", "name": "instrumentAssignments", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181652562", "name": "instrumentAssignments", "kind": "item" }, { "rel": "lov", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181652562/lov/PersonPVA", "name": "PersonPVA", "kind": "collection" } ] }
Example 5
The following example shows how to update a payment instrument assignment for a bank account to be used in Payroll.
curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X PATCH -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100177498435
Example Request Body
The following example shows the contents of the request body in JSON format:
{ "PrimaryIndicator": "Y", "Intent": "Person", "PersonId": 300100038082897 }
Example Response Body
The following example shows the contents of the response body in JSON format:
{ "PaymentInstrumentAssignmentId": 300100177498435, "PaymentPartyId": 300100177406393, "PaymentInstrumentId": 300100177498426, "PaymentFlow": "DISBURSEMENTS", "PaymentInstrumentType": "BANKACCOUNT", "PrimaryIndicator": "Y", "StartDate": "2019-04-02", "EndDate": "4712-12-31", "MaskedBankAccountNumber": null, "MaskedCreditCardNumber": null, "VendorId": null, "PersonId": 300100038082897, "Intent": "Person", "OwnerPersonId": 300100038082897, "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100177498435", "name": "instrumentAssignments", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100177498435", "name": "instrumentAssignments", "kind": "item" }, { "rel": "lov", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100177498435/lov/PersonPVA", "name": "PersonPVA", "kind": "collection" } ] }
Example 6
The following example shows how to update a payment instrument assignment for a bank account to be used in Expenses.
curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X PATCH -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181652563
Example Request Body
The following example shows the contents of the request body in JSON format:
{ "EndDate": "2021-12-31", "Intent": "Employee" }
Example Response Body
The following example shows the contents of the response body in JSON format:
{ "PaymentInstrumentAssignmentId": 300100181652563, "PaymentPartyId": 300100180898209, "PaymentInstrumentId": 300100181126921, "PaymentFlow": "DISBURSEMENTS", "PaymentInstrumentType": "BANKACCOUNT", "PrimaryIndicator": "Y", "StartDate": "2019-11-06", "EndDate": "2021-12-31", "MaskedBankAccountNumber": null, "MaskedCreditCardNumber": null, "VendorId": null, "PersonId": null, "Intent": "Employee", "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181652563", "name": "instrumentAssignments", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278" } }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181652563", "name": "instrumentAssignments", "kind": "item" }, { "rel": "lov", "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181652563/lov/PersonPVA", "name": "PersonPVA", "kind": "collection" } ] }
Example 7
The following example shows how to update a payment instrument assignment for an ad-hoc payee by submitting a PATCH request on the REST resource using cURL.
curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X PATCH -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181538390
Example Request Body
The following example shows the contents of the request body in JSON format:
{ "EndDate": "2021-12-31", "Intent": "Adhoc" }
Example Response Body
The following example shows the contents of the response body in JSON format:
{ "PaymentInstrumentAssignmentId": 300100181538390, "PaymentPartyId": 300100180582389, "PaymentInstrumentId": 300100181135401, "PaymentFlow": "DISBURSEMENTS", "PaymentInstrumentType": "BANKACCOUNT", "PrimaryIndicator": "Y", "StartDate": "2019-11-06", "EndDate": "2021-12-31", "MaskedBankAccountNumber": null, "MaskedCreditCardNumber": null, "VendorId": null, "PersonId": null, "Intent": "Adhoc", "links": [ { "rel": "self", "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181538390", "name": "instrumentAssignments", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278" } }, { "rel": "canonical", "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181538390", "name": "instrumentAssignments", "kind": "item" }, { "rel": "lov", "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181538390/lov/PersonPVA", "name": "PersonPVA", "kind": "collection" } ] }
Example 8
The following example shows how to update a payment instrument assignment for a one-time payee by submitting a PATCH request on the REST resource using cURL.
curl -i -u "<username>:<password>" -H "Content-Type: application/json" -X PATCH -d <payload> https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181538391
Example Request Body
The following example shows the contents of the request body in JSON format:
{ "EndDate": "2021-12-31", "Intent": "Onetime" }
Example Response Body
The following example shows the contents of the response body in JSON format:
{ "PaymentInstrumentAssignmentId": 300100181538391, "PaymentPartyId": 300100180582391, "PaymentInstrumentId": 249304, "PaymentFlow": "DISBURSEMENTS", "PaymentInstrumentType": "BANKACCOUNT", "PrimaryIndicator": "Y", "StartDate": "2019-11-06", "EndDate": "2021-12-31", "MaskedBankAccountNumber": null, "MaskedCreditCardNumber": null, "VendorId": null, "PersonId": null, "Intent": "Onetime", "links": [ { "rel": "self", "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181538391", "name": "instrumentAssignments", "kind": "item", "properties": { "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278" } }, { "rel": "canonical", "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181538391", "name": "instrumentAssignments", "kind": "item" }, { "rel": "lov", "href": "http://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/instrumentAssignments/300100181538391/lov/PersonPVA", "name": "PersonPVA", "kind": "collection" } ] }