---
schema_version: "1"
id: 3a8f0af8340ebb7191783951432095bbd26d9cb5ea5f080d35d4616580417e66
title: PaymentCreditTransaction
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_paymentcredittransaction.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_paymentcredittransaction.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 39681ed1341cd7bc107baf1f3897de0f953f1810899883f977cb81e595bf6e75
description: A payment credit transaction. This object is available in API version 65.0 and later.
---
# PaymentCreditTransaction

A payment credit transaction. This object is available in API version 65.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

## Special Access Rules

This object is only available in Salesforce Order Management orgs or if the B2B Commerce or D2C Commerce license is enabled. Users require the PaymentCredit and PaymentPlatform permission sets.

## Fields

| Field | Details |
| --- | --- |
| Amount | 
Type

currency

Properties

Create, Filter, Sort

Description

Amount of the payment credit transaction.

This is a required field.



 |
| AssociatedAccountId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort

Description

ID of the customer account.

This field is a relationship field.

Relationship Name

AssociatedAccount

Refers To

Account



 |
| ClientContext | 

Type

textarea

Properties

Nillable

Description

Additional information about the payment credit transaction.



 |
| CurrencyIsoCode | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

Contains the ISO code for any currency allowed by the organization.

Possible values are:

- EUR—Euro
- GBP—British Pound
- USD—U.S. Dollar

The default value is USD.



 |
| ExternalReference | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Reference ID used to track the payment credit transaction.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Timestamp for when the current user last viewed a record related to this record.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Timestamp for when the current user last viewed this record. If this value is null, it’s possible that this record was referenced (LastReferencedDate) and not viewed.



 |
| PaymentCreditId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

ID of the payment credit.

This field is a relationship field.

This is a required field.

Relationship Name

PaymentCredit

Relationship Type

Master-detail

Refers To

PaymentCredit (the master object)



 |
| PaymentCreditTransactionNumber | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

Number of the payment credit transaction. This field is automatically generated.

Example: PCT-{000000000}.



 |
| ProcessingMode | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

Credit transaction processing mode.

Possible values are:

- External
- Salesforce

This is a required field.



 |
| Status | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

A static enum showing the status of the credit transaction.

Possible values are:

- Canceled
- Draft
- Failed
- Pending
- Processed





 |
| TransactionMessage | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Message describing the transaction.



 |